package com.ruoyi.APPMS.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.APPMS.mapper.PurchasevehicleorderMapper;
import com.ruoyi.APPMS.domain.Purchasevehicleorder;
import com.ruoyi.APPMS.service.IPurchasevehicleorderService;

import java.util.List;

/**
 * 购买车辆订单管理Service业务层处理
 *
 * @author wanghaoyu
 * @date 2023-07-03
 */
@Service
public class PurchasevehicleorderServiceImpl extends ServiceImpl<PurchasevehicleorderMapper, Purchasevehicleorder> implements IPurchasevehicleorderService {
    @Autowired
    private PurchasevehicleorderMapper purchasevehicleorderMapper;

    @Override
    public List<Purchasevehicleorder> list(Purchasevehicleorder purchasevehicleorder) {
        return purchasevehicleorderMapper.list(purchasevehicleorder);
    }

    @Override
    public Purchasevehicleorder listByID(Long purchasevehicleorderid) {
        return purchasevehicleorderMapper.listByID(purchasevehicleorderid);
    }

    @Override
    public boolean createLogistic1(Purchasevehicleorder purchasevehicleorder) {
        return purchasevehicleorderMapper.createLogistic1(purchasevehicleorder) > 0;
    }

    @Override
    public boolean settime(Purchasevehicleorder purchasevehicleorder) {
        return purchasevehicleorderMapper.settime(purchasevehicleorder) > 0;
    }

    @Override
    public boolean createLogistic2(Purchasevehicleorder purchasevehicleorder) {
        return purchasevehicleorderMapper.createLogistic2(purchasevehicleorder) > 0;
    }
}
